import {HTTP} from '../request/http.js'

const Dormitory = {
	postCreateDormitory:'/dormitory/create',
	getJoinedDormitorys:'/dormitory/joined',
	getDormitoryInfo:'/dormitory/$relationId',
	getNewJoiner:'/dormitory/$dormitoryId/new/joiner',
	getAllJoiner:'/dormitory/$dormitoryId/all/joiner',
	getDormitoryPartInfo:'/dormitory/part/info',
	postJoinDormitory:'/dormitory/user/come',
	deleteKickUser:'/dormitory/kick',
	patchSetNickNameByDormitory:'/dormitory/$relationId/relation/nick_name',
	patchSetDormitoryInfo:'/dormitory/update/$dormitoryId',
	delteQuitDormitory:'/dormitory/quit/$relationId',
	getNotice:'/dormitory/$dormitoryId/notices',
	postCreateNotice:'/dormitory/$dormitoryId/notice',
	getNoticeInfo:'/dormitory/notice/$relationId',
	deleteNotice:'/dormitory/notice/$noticeId',
	getNoticeState:'/dormitory/notice/viewed/$relationId',
	getBillTypeList:'/dormitory/$dormitoryId/all/billType',
	postAddBill:'/dormitory/$billTypeId/$dormitoryId/bill',
	postAddBillType:'/dormitory/$dormitoryId/billType',
	patchBillType:'/dormitory/$billTypeId/$dormitoryId/billType/update',
	getAllBills:'/dormitory/$dormitoryId/bills',
	deleteBill:'/dormitory/bill/$billId',
	patchBill:'/dormitory/$billId/$billTypeId/$dormitoryId/bill/update',
	getDutys:'/dormitory/$dormitoryId/duty/list',
	postAddDuty:'/dormitory/$dormitoryId/duty',
	patchDuty:'/dormitory/$dutyId/duty',
	deleteDuty:'/dormitory/$dutyId/duty',
	getEstates:'/dormitory/$dormitoryId/estates',
	deleteEstate:'/dormitory/$estateId/estate',
	postAddEstate:'/dormitory/$dormitoryId/estate',
	getEstate:'/dormitory/$estateId/estate',
	patchEstate:'/dormitory/$estateId/estate',
	getMemos:'/dormitory/$dormitoryId/memos',
	postAddMemo:'/dormitory/$dormitoryId/memo',
	deleteMemo:'/dormitory/$memoId/memo',
	patchMemo:'/dormitory/$memoId/memo',
	getAllInOut:'/dormitory/$dormitoryId/all/in_out',
	getAllLots:'/dormitory/$dormitoryId/lots',
	postAddLot:'/dormitory/$dormitoryId/lot',
	getLotJoinInfo:'/dormitory/$lotId/join/lots',
	postJoinLot:'/dormitory/$lotId/join/lot',
	deleteLot:'/dormitory/$lotId/lot',
	getJoinBgcList:'/dormitory/all/join/bgc',
	setJoinBgc:'/dormitory/set/join/bgc/$relationId',
	getMineEasyDormitoryInfo:'/dormitory/mine/bgc/all/info/$relationId',
	setJoinHelp:'/dormitory/help/set/join/count',
	getHelpJoinBgcList:'/dormitory/all/help/join/bgc/list/$relationId',
	getDutyInfo:'/dormitory/duty/info/$dutyId',
	getDutyClockList:'/dormitory/duty/clock/$dutyId',
	postDutyClock:'/dormitory/duty/clock/$dutyId',
	postDutyClockFill:'/dormitory/duty/clock/fill/$dutyId',
	patchDutyClock:'/dormitory/duty/clock/update/$dutyId',
	postSetFillDutylClockHelp:'/dormitory/duty/clock/fill/join/help',
	getDutyClockHelpList:'/dormitory/duty/clcok/fill/help/list/$dutyId',
	postAddDutyClockFillCount:'/dormitory/duty/clock/fill/count/add/$dutyId',
	postAddSetJoinBgcCount:'/dormitory/add/set/join/count/$relationId',
	getEveryDutyClockCount:'/dormitory/every/duty/clock/count/$dormitoryId',
	postAutoRefreshDuty:'/dormitory/auto/refresh/fill/duty/$dormitoryId',
	deleteDormitory:"/dormitory/delete/$dormitoryId",
	getDeleteDormitory:"/dormitory/delete/dormitory/end/time/$dormitoryId",
	patchUnDeleteDormitory:"/dormitory/undelete/$dormitoryId",
	updateDormitoryIsPush:"/dormitory/update/allow/push/$dormitoryId",
	deleteAllFillDuty:"/dormitory/delete/all/fill/duty/$dormitoryId",
	getFillDutyUsers:"/dormitory/duty/fill/users/$dormitoryId",
	postSaveDutysByAdmin:"/dormitory/save/dutys/by/admin/$dormitoryId",
	patchIsPauseDuty:"/dormitory/update/pause/duty/$dormitoryId",
	getAllRandomLots:"/dormitory/all/randomLots/$dormitoryId",
	postAddRandomLots:"/dormitory/add/randomLots/$dormitoryId",
	getRandomLotsInfo:"/dormitory/randomLots/info/$randomLotsId",
	postJoinRandomLots:"/dormitory/join/randomLot/$randomLotsId",
	deleteRandomLots:"/dormitory/delete/randomLot/$randomLotsId",
	updateDormitoyCodeImg:"/dormitory/update/erCode/$dormitoryId",
	updateDormitoryAdmin:"/dormitory/update/dormitoryAdmin/give/$dormitoryId",
	getAllVotes:"/dormitory/all/vote/$dormitoryId",
	postAddVote:"/dormitory/add/vote/$dormitoryId",
	deleteVote:"/dormitory/delete/vote/$voteId",
	getVoteInfo:"/dormitory/vote/info/$voteId",
	postJoinVote:"/dormitory/join/vote/$voteId",
	patchDormitoryWeekType:"/dormitory/update/dormitory/week/type/$dormitoryId"
}

class DormitoryModel extends HTTP {
	patchDormitoryWeekType(data,dormitoryId){
		return this.request({
			url:Dormitory.patchDormitoryWeekType,
			data,
			isToken:true,
			isLoading:true,
			method:"patch",
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	postJoinVote(data,voteId){
		return this.request({
			url:Dormitory.postJoinVote,
			data,
			isToken:true,
			isLoading:true,
			method:"post",
			params:[{
				key:'voteId',
				value:voteId
			}]
		})
	}
	getVoteInfo(data,voteId){
		return this.request({
			url:Dormitory.getVoteInfo,
			data,
			isToken:true,
			params:[{
				key:'voteId',
				value:voteId
			}]
		})
	}
	deleteVote(data,voteId){
		return this.request({
			url:Dormitory.deleteVote,
			data,
			isToken:true,
			method:"delete",
			isLoading:true,
			params:[{
				key:'voteId',
				value:voteId
			}]
		})
	}
	postAddVote(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddVote,
			data,
			isToken:true,
			method:'post',
			isLoading:true,
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	getAllVotes(data,dormitoryId){
		return this.request({
			url:Dormitory.getAllVotes,
			data,
			isToken:true,
			method:'get',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	updateDormitoryAdmin(data,dormitoryId){
		return this.request({
			url:Dormitory.updateDormitoryAdmin,
			data,
			isToken:true,
			isLoading:true,
			method:"patch",
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	updateDormitoyCodeImg(data,dormitoryId){
		return this.request({
			url:Dormitory.updateDormitoyCodeImg,
			data,
			isToken:true,
			method:"patch",
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	deleteRandomLots(data,randomLotsId){
		return this.request({
			url:Dormitory.deleteRandomLots,
			data,
			isToken:true,
			isLoading:true,
			method:"delete",
			params:[{
				key:'randomLotsId',
				value:randomLotsId
			}]
		})
	}
	postJoinRandomLots(data,randomLotsId){
		return this.request({
			url:Dormitory.postJoinRandomLots,
			data,
			isToken:true,
			isLoading:true,
			method:"post",
			params:[{
				key:'randomLotsId',
				value:randomLotsId
			}]
		})
	}
	getRandomLotsInfo(data,randomLotsId){
		return this.request({
			url:Dormitory.getRandomLotsInfo,
			data,
			isToken:true,
			method:"get",
			params:[{
				key:'randomLotsId',
				value:randomLotsId
			}]
		})
	}
	postAddRandomLots(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddRandomLots,
			data,
			isToken:true,
			method:"post",
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	getAllRandomLots(data,dormitoryId){
		return this.request({
			url:Dormitory.getAllRandomLots,
			data,
			isToken:true,
			method:'get',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	patchIsPauseDuty(data,dormitroyId){
		return this.request({
			url:Dormitory.patchIsPauseDuty,
			data,
			isToken:true,
			isLoading:true,
			method:'patch',
			params:[{
				key:'dormitoryId',
				value:dormitroyId
			}]
		})
	}
	postSaveDutysByAdmin(data,dormitoryId){
		return this.request({
			url:Dormitory.postSaveDutysByAdmin,
			data,
			isToken:true,
			isLoading:true,
			method:'post',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	getFillDutyUsers(data,dormitoryId){
		return this.request({
			url:Dormitory.getFillDutyUsers,
			data,
			isToken:true,
			method:'get',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	deleteAllFillDuty(data,dormitoryId){
		return this.request({
			url:Dormitory.deleteAllFillDuty,
			data,
			isToken:true,
			isLoading:true,
			method:'delete',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	updateDormitoryIsPush(data,dormitoryId){
		return this.request({
			url:Dormitory.updateDormitoryIsPush,
			data,
			isToken:true,
			isLoading:true,
			method:'patch',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	patchUnDeleteDormitory(data,dormitoryId){
		return this.request({
			url:Dormitory.patchUnDeleteDormitory,
			data,
			isToken:true,
			method:'patch',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	getDeleteDormitory(data,dormitoryId){
		return this.request({
			url:Dormitory.getDeleteDormitory,
			data,
			isToken:true,
			method:'get',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	deleteDormitory(data,dormitoryId){
		return this.request({
			url:Dormitory.deleteDormitory,
			data,
			isToken:true,
			method:'delete',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	postAutoRefreshDuty(data,dormitoryId){
		return this.request({
			url:Dormitory.postAutoRefreshDuty,
			data,
			isToken:true,
			isLoading:true,
			method:'post',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	getEveryDutyClockCount(data,dormitoryId){
		return this.request({
			url:Dormitory.getEveryDutyClockCount,
			data,
			isToken:true,
			method:'get',
			params:[{
				key:'dormitoryId',
				value:dormitoryId
			}]
		})
	}
	postAddSetJoinBgcCount(data,relationId){
		return this.request({
			url:Dormitory.postAddSetJoinBgcCount,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	postAddDutyClockFillCount(data,dutyId){
		return this.request({
			url:Dormitory.postAddDutyClockFillCount,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	getDutyClockHelpList(data,dutyId){
		return this.request({
			url:Dormitory.getDutyClockHelpList,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	postSetFillDutylClockHelp(data){
		return this.request({
			url:Dormitory.postSetFillDutylClockHelp,
			data,
			isToken:true,
			method:'post'
		})
	}
	patchDutyClock(data,dutyId){
		return this.request({
			url:Dormitory.patchDutyClock,
			data,
			isToken:true,
			method:'patch',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	postDutyClockFill(data,dutyId){
		return this.request({
			url:Dormitory.postDutyClockFill,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	postDutyClock(data,dutyId){
		return this.request({
			url:Dormitory.postDutyClock,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	getDutyClockList(data,dutyId){
		return this.request({
			url:Dormitory.getDutyClockList,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	getDutyInfo(data,dutyId){
		return this.request({
			url:Dormitory.getDutyInfo,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	getHelpJoinBgcList(data,relationId){
		return this.request({
			url:Dormitory.getHelpJoinBgcList,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	setJoinHelp(data){
		return this.request({
			url:Dormitory.setJoinHelp,
			data,
			isToken:true,
			method:'post'
		})
	}
	getMineEasyDormitoryInfo(data,relationId){
		return this.request({
			url:Dormitory.getMineEasyDormitoryInfo,
			data,
			isToken:true,
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	setJoinBgc(data,relationId){
		return this.request({
			url:Dormitory.setJoinBgc,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	getJoinBgcList(data){
		return this.request({
			url:Dormitory.getJoinBgcList,
			data,
			isToken:true
		})
	}
	deleteLot(data,lotId){
		return this.request({
			url:Dormitory.deleteLot,
			data,
			isToken:true,
			isLoading:true,
			method:'delete',
			params:[
				{
					key:'lotId',
					value:lotId
				}
			]
		})
	}
	postJoinLot(data,lotId){
		return this.request({
			url:Dormitory.postJoinLot,
			data,
			isToken:true,
			isLoading:true,
			method:'post',
			params:[
				{
					key:'lotId',
					value:lotId
				}
			]
		})
	}
	getLotJoinInfo(data,lotId){
		return this.request({
			url:Dormitory.getLotJoinInfo,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'lotId',
					value:lotId
				}
			]
		})
	}
	postAddLot(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddLot,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getAllLots(data,dormitoryId){
		return this.request({
			url:Dormitory.getAllLots,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getAllInOut(data,dormitoryId){
		return this.request({
			url:Dormitory.getAllInOut,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	patchMemo(data,memoId){
		return this.request({
			url:Dormitory.patchMemo,
			data,
			isToken:true,
			method:'patch',
			params:[
				{
					key:'memoId',
					value:memoId
				}
			]
		})
	}
	deleteMemo(data,memoId){
		return this.request({
			url:Dormitory.deleteMemo,
			data,
			isToken:true,
			method:'delete',
			params:[
				{
					key:'memoId',
					value:memoId
				}
			]
		})
	}
	postAddMemo(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddMemo,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getMemos(data,dormitoryId){
		return this.request({
			url:Dormitory.getMemos,
			data,
			method:'get',
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	patchEstate(data,estateId){
		return this.request({
			url:Dormitory.patchEstate,
			data,
			method:'patch',
			isToken:true,
			params:[
				{
					key:'estateId',
					value:estateId
				}
			]
		})
	}
	getEstate(data,estateId){
		return this.request({
			url:Dormitory.getEstate,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'estateId',
					value:estateId
				}
			]
		})
	}
	postAddEstate(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddEstate,
			data,
			isToken:true,
			method:'post',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	deleteEstate(data,estateId){
		return this.request({
			url:Dormitory.deleteEstate,
			data,
			isToken:true,
			isLoading:true,
			method:'delete',
			params:[
				{
					key:'estateId',
					value:estateId
				}
			]
		})
	}
	getEstates(data,dormitoryId){
		return this.request({
			url:Dormitory.getEstates,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	deleteDuty(data,dutyId){
		return this.request({
			url:Dormitory.deleteDuty,
			data,
			isToken:true,
			isLoading:true,
			method:'delete',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	patchDuty(data,dutyId){
		return this.request({
			url:Dormitory.patchDuty,
			data,
			isToken:true,
			isLoading:true,
			method:'patch',
			params:[
				{
					key:'dutyId',
					value:dutyId
				}
			]
		})
	}
	postAddDuty(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddDuty,
			data,
			method:'post',
			isLoading:true,
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getDutys(data,dormitoryId){
		return this.request({
			url:Dormitory.getDutys,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	patchBill(data,billId,billTypeId,dormitoryId){
		return this.request({
			url:Dormitory.patchBill,
			data,
			isToken:true,
			isLoading:true,
			method:'patch',
			params:[
				{
					key:'billId',
					value:billId
				},
				{
					key:'billTypeId',
					value:billTypeId
				},
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	deleteBill(data,billId){
		return this.request({
			url:Dormitory.deleteBill,
			data,
			method:'delete',
			isToken:true,
			isLoading:true,
			params:[
				{
					key:'billId',
					value:billId
				}
			]
		})
	}
	getAllBills(data,dormitoryId){
		return this.request({
			url:Dormitory.getAllBills,
			data,
			isToken:true,
			method:'get',
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	patchBillType(data,billTypeId,dormitoryId){
		return this.request({
			url:Dormitory.patchBillType,
			data,
			isToken:true,
			method:'patch',
			params:[
				{
					key:'billTypeId',
					value:billTypeId
				},
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	postAddBillType(data,dormitoryId){
		return this.request({
			url:Dormitory.postAddBillType,
			data,
			method:'post',
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	postAddBill(data,billTypeId,dormitoryId){
		return this.request({
			url:Dormitory.postAddBill,
			data,
			method:'post',
			isToken:true,
			params:[
				{
					key:'billTypeId',
					value:billTypeId
				},
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getBillTypeList(data,dormitoryId){
		return this.request({
			url:Dormitory.getBillTypeList,
			data,
			isToken:true,
			isLoading:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getNoticeState(data,relationId){
		return this.request({
			url:Dormitory.getNoticeState,
			method:'get',
			data,
			isToken:true,
			isLoading:true,
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	deleteNotice(data,noticeId){
		return this.request({
			url:Dormitory.deleteNotice,
			method:'delete',
			data,
			isToken:true,
			params:[
				{
					key:'noticeId',
					value:noticeId
				}
			]
		})
	}
	getNoticeInfo(data,relationId){
		return this.request({
			url:Dormitory.getNoticeInfo,
			method:'get',
			data,
			isToken:true,
			isLoading:true,
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	postCreateNotice(data,dormitoryId){
		return this.request({
			url:Dormitory.postCreateNotice,
			method:'post',
			data,
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getNotice(data,dormitoryId){
		return this.request({
			url:Dormitory.getNotice,
			method:'get',
			data,
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	delteQuitDormitory(data,relationId){
		return this.request({
			url:Dormitory.delteQuitDormitory,
			method:'delete',
			data,
			isToken:true,
			params:[
				{
					key:'relationId',
					value:relationId
				}
			],
		})
	}
	patchSetDormitoryInfo(data,dormitoryId){
		return this.request({
			url:Dormitory.patchSetDormitoryInfo,
			method:'patch',
			data,
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	patchSetNickNameByDormitory(data,relationId){
		return this.request({
			url:Dormitory.patchSetNickNameByDormitory,
			method:'patch',
			data,
			params:[
				{
					key:'relationId',
					value:relationId
				}
			],
			isToken:true
		})
	}
	deleteKickUser(data){
		return this.request({
			url:Dormitory.deleteKickUser,
			method:'delete',
			data,
			isToken:true
		})
	}
	postCreateDormitory(data){
		return this.request({
			url:Dormitory.postCreateDormitory,
			method:'post',
			data,
			isToken:true,
			isLoading:true
		})
	}
	getJoinedDormitorys(data){
		return this.request({
			url:Dormitory.getJoinedDormitorys,
			method:'get',
			data,
			isToken:true
		})
	}
	getDormitoryInfo(data,relationId){
		return this.request({
			url:Dormitory.getDormitoryInfo,
			method:'get',
			data,
			isToken:true,
			params:[
				{
					key:'relationId',
					value:relationId
				}
			]
		})
	}
	getNewJoiner(data,dormitoryId){
		return this.request({
			url:Dormitory.getNewJoiner,
			method:'get',
			data,
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getAllJoiner(data,dormitoryId){
		return this.request({
			url:Dormitory.getAllJoiner,
			method:'get',
			data,
			isToken:true,
			params:[
				{
					key:'dormitoryId',
					value:dormitoryId
				}
			]
		})
	}
	getDormitoryPartInfo(data){
		return this.request({
			url:Dormitory.getDormitoryPartInfo,
			method:'get',
			data,
			isLoading:true
		})
	}
	postJoinDormitory(data){
		return this.request({
			url:Dormitory.postJoinDormitory,
			method:'post',
			data
		})
	}
}

export { DormitoryModel }